<%@page import="com.team.util.DateCount"%>
<%@page import="com.team.entity.Document"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.team.entity.Project"%>
<%@ page import="com.team.util.Const"  %>
<%@ page import="com.team.entity.User" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'docshow.jsp' starting page</title>


     <link rel="stylesheet" href="css/prettify.css" />
     <link rel="stylesheet" href="css/bootstrap.min.css" />


  </head>
  
  <body class="body">
  <%
  	User user = (User)session.getAttribute(Const.SESSION_USER);

  	Project project =(Project)session.getAttribute(Const.SESSION_PROJ);
  	if(user ==  null || project == null){

   %>
   <div style="color:red;">空</div>
   <%} %>
  	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a href="#" class="brand">凯盛项目管理系统</a>
				 <ul class="nav pull-right">
						<li><a class="nav pull-right" href="#">用户名： <%=user.getUserName() %></a></li>
				 </ul>
			</div>
		</div>
	</div>
	<div class="container">
		<div class="row">
			<div class="span3">
						<div class="well" style="padding: 8px 0;">
							<ul class="nav nav-list">
							  <li class="nav-header"><%=project.getProjName() %></li>
							  <li class="divider"></li>
							  <li ><a href="info.jspx?_m=select&projId=<%=project.getId() %>"><i class="icon-home"></i>最新动态</a></li>
							  <li ><a href="addGoal.jspx?_m=select"><i class="icon-flag"></i>目标</a></li>
							  <li class="active"><a href="docShare.jspx?_m=select&projId=<%=project.getId() %>"><i class="icon-folder-open"></i>资料库</a></li>
							  <li><a href="newFolder.jspx?_m=select"><i class="icon-file"></i>文件共享</a></li>
							  <li  ><a href="newContact.jspx?_m=select&projId=<%=project.getId() %>"><i class="icon-white icon-user"></i>联系人</a></li>
							  <li><a href="newIdea.jspx?_m=select&id=<%=project.getId() %>"><i class="icon-fire"></i>想法</a></li>
							  <li><a href="findBug.jsp"><i class="icon-warning-sign"></i>Bug</a></li>
							  <li><a href="projReset.jsp"><i class="icon-cog"></i>项目设置</a></li>
							</ul>
						</div>
				</div>
				
				<div class="span9">
				
					<ul style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px" class="breadcrumb">
						<li class="active">
							<a href="document.html"><i class="icon-folder-open"></i>资料</a>&gt;资料标题
						</li>
				
				   </ul>
				   <%
					Document doc = (Document)session.getAttribute(Const.SESSION_DOC);
				
					if(doc == null){
				 %>
				 <div style="color:red;">为空</div>
				 <%}else {
				 	
				  %>
				<div class="wall">
				  <div class="page-header">
					<h3><%=doc.getTitle() %>&nbsp;&nbsp;<small><%=user.getUsername() %>发布于<%=DateCount.getDateCount(doc.getCreateTime()) %>前</small></h3>
				  </div>
				  <p>
				  <%=doc.getContext() %>
				  </p>
				  <a href="doc.jsp">←返回资料列表</a>
			   </div>
			   <%} %>
		</div>
		</div>
	</div>
  
  </body>
</html>
